package com.woniuxy.commons.exception.code;

import lombok.Data;

public enum OrderExceptionCode {
    ORDER_ADD_FAIL(1001,"新增订单失败"),
    ORDER_UPDATE_FAIL_PAYFINASH(1002,"付款后修改订单失败"),
    ORDER_STOREACCEPT_UPDATE_FAIL(1003,"商家接单后修改订单失败"),
    ORDER_BUYCANCEL_FAIL(1004,"买家取消订单失败"),
    ORDER_STORE_DISPATCHING_FAIL(1005,"商家点击派送失败"),
    ORDER_STORE_REFUSE_FAIL(1006,"商家拒绝接单失败"),
    ORDER_COURIER_REFUSE_FAIL(1007,"配送员拒绝配送失败"),
    ORDER_STORE_WAITDISPATCHING_FAIL(1008,"商家点击等待配送失败"),
    ORDER_FINISH_FAIL(1009,"商家点击完成订单失败")
    ;
    private Integer code;
    private String message;

    OrderExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
